The handle identifies the sensor within the system and is included in the
{@link ASensorEvent#sensor} field of sensor events, including those sent with type
{@link ASENSOR_TYPE_ADDITIONAL_INFO}.
A sensor's handle is able to be used to map {@link ASENSOR_TYPE_ADDITIONAL_INFO} events to the
sensor that generated the event.
It is important to note that the value returned by {@link ASensor_getHandle} is not the same as
the value returned by the Java API {@link android.hardware.Sensor#getId} and no mapping exists
between the values.
Returns the sensor's handle.
The handle identifies the sensor within the system and is included in the {@link ASensorEvent#sensor} field of sensor events, including those sent with type {@link ASENSOR_TYPE_ADDITIONAL_INFO}.
A sensor's handle is able to be used to map {@link ASENSOR_TYPE_ADDITIONAL_INFO} events to the sensor that generated the event.
It is important to note that the value returned by {@link ASensor_getHandle} is not the same as the value returned by the Java API {@link android.hardware.Sensor#getId} and no mapping exists between the values.